$(function(){
				var url=getRootPath()+'delay/group?token='+getChildToken();
				
				
				
				var callback=function(dataR){
					var code =dataR.data.code;
					if(code==200){
										
						var studentName = [];
					    var delayCount = [];
						var data=dataR.data.data;
						
						var group=dataR.data.data.group;
						group.forEach(e => {
						    studentName.push(e.userName);
							delayCount.push(e.count);				  
						});
										if(studentName.length!=0&&delayCount.length!=0){
											var myChart = echarts.init($('#studentDelayHistogram')[0]);
											var option = {
											  title: {
											    text: '学生迟到次数柱状图'
											  },
											  tooltip: {},
											  legend: {
											    data: ['迟到次数']
											  },
											  xAxis: {
											    data: studentName
											  },
											  yAxis: {
											    type: 'value',
											    interval:1,
											  },
											  series: [
											    {
											      name: '迟到次数',
											      type: 'bar',
											      data: delayCount
											    }
											  ]
											};
											myChart.setOption(option);
										}
						
					}
					
				}
				axios.get(url).then(callback);
				
				
			});